﻿<Window x:Class="Resn.WhuPub.WPFClientUI.CreateMajorSetupWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Style="{StaticResource WindowStyle}" WindowStartupLocation="CenterScreen"
      Loaded="Window_Loaded" MouseDown="Window_OnMouseDown">
        <Grid Name="LayoutRoot">
                <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>

                <Grid Background="{StaticResource TitleGridColor}">
                        <TextBlock Text="新建专业设置" Style="{DynamicResource BigTextBlockStyle}" />
                </Grid>
                
                <Grid Grid.Row="1" Background="{StaticResource ContentGridColor}">
                        <Grid.RowDefinitions>
                                <RowDefinition Height="*" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="80" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="*" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="1" Grid.Row="1" Text="门类" 
                                   HorizontalAlignment="Right" />
                        <ComboBox Grid.Column="2" Grid.Row="1" MinWidth="280" Name="CategorysComboBox"
                                   
                                  ItemsSource="{Binding MajorSetupCategorys}"
                                  SelectedValue="{Binding MajorSetupCategory}"
                                  DisplayMemberPath="Name" />

                        <TextBlock Grid.Column="1" Grid.Row="2" HorizontalAlignment="Right" Text="科目"
                                    VerticalAlignment="Center" />
                        <ComboBox Grid.Column="2" Grid.Row="2" MinWidth="280" Name="SubjectsComboBox"
                                   
                                  ItemsSource="{Binding MajorSetupSubjects}"
                                  SelectedValue="{Binding MajorSetupSubject}"
                                  DisplayMemberPath="Name" />

                        <TextBlock Grid.Column="1" Grid.Row="3" HorizontalAlignment="Right" Text="专业"
                                    />
                        <ComboBox Grid.Column="2" Grid.Row="3" Name="MajorsComboBox"
                                   
                                  ItemsSource="{Binding MajorSetupMajors}"
                                  SelectedValue="{Binding MajorSetupMajor}"
                                  DisplayMemberPath="Name" />

                        
                        <TextBlock Grid.Column="1" Grid.Row="5" HorizontalAlignment="Left" Text="专业负责人"
                                   VerticalAlignment="Top"  />
                        <TextBox Grid.Column="2" Grid.Row="5"
                                 
                                 Text="{Binding MajorSetupManagerName}" />

                        <TextBlock Grid.Column="1" Grid.Row="6" HorizontalAlignment="Right"
                                   Text="教学负责人" VerticalAlignment="Center"  />
                        <TextBox Grid.Column="2" Grid.Row="6"
                                  
                                 Text="{Binding MajorSetupTeachingManagerName}" />
                </Grid>
                <Grid Grid.Row="2" Background="{StaticResource ContentGridColor}">
                        <Grid.ColumnDefinitions>
                                <ColumnDefinition />
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <Button Grid.Column="1" Style="{DynamicResource WindowCancelButtonStyle}"/>
                        <Button Grid.Column="2" Style="{DynamicResource WindowAcceptButtonStyle}" Click="AcceptButton_Click" />
                </Grid>
        </Grid>
</Window>